package com.tech.platform.entity;

import com.swak.annotation.ColumnStrategy;
import com.swak.annotation.Table;
import com.swak.persistence.Model;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 描述
 * 
 * @author Auto Generator
 * @date 2021-03-28
 */
@Getter
@Setter
@Accessors(chain = true)
@Table(value="PLATFORM_APP", strategy=ColumnStrategy.Full)
public class App extends Model<App, String> {
	
	public static final String Id = "ID";
	public static final String Name = "NAME";
	public static final String Type = "TYPE";
	public static final String RefreshToken = "REFRESH_TOKEN";
	public static final String AccessToken = "ACCESS_TOKEN";
	public static final String AddTime = "ADD_TIME";
	public static final String ExpiresIn = "EXPIRES_IN";
	public static final String TenantId = "TENANT_ID";
	public static final String CreateDate = "CREATE_DATE";
	public static final String UpdateDate = "UPDATE_DATE";
	public static final String DelFlag = "DEL_FLAG";
	
	private String name;
	private Byte type;
	private String refreshToken;
	private String accessToken;
	private Long addTime;
	private Integer expiresIn;
	private Long tenantId;
	
	public static App of() {
	  return new App();
	}
}
